package com.github.rpc4j.common;

import java.io.Serializable;

public class ServiceRequest implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = -5031704571904691028L;

	private String interfaceName;
	
	private String version;
	
	private String methodDesc;
	
	private String method;
	
	private Object[] serviceArgs;
	
	private int channelId;
	

	public String getInterfaceName() {
		return interfaceName;
	}

	public void setInterfaceName(String interfaceName) {
		this.interfaceName = interfaceName;
	}

	public String getVersion() {
		return version;
	}

	public void setVersion(String version) {
		this.version = version;
	}

	public String getMethodDesc() {
		return methodDesc;
	}

	public void setMethodDesc(String methodDesc) {
		this.methodDesc = methodDesc;
	}

	public String getMethod() {
		return method;
	}

	public void setMethod(String method) {
		this.method = method;
	}

	public Object[] getServiceArgs() {
		return serviceArgs;
	}

	public void setServiceArgs(Object[] serviceArgs) {
		this.serviceArgs = serviceArgs;
	}

	public int getChannelId() {
		return channelId;
	}

	public void setChannelId(int channelId) {
		this.channelId = channelId;
	}

	
	public String getRequestKey(){
		return this.interfaceName +"_" + this.version;
	}
	

	
}
